home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) Microsoft Corporation. All rights reserved. */
- var sCookieExp = "Mon, 31 Dec 2100 23:59:59 UTC"; function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { return getCookieVal (j); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) { break; } } return ""; } function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) { endstr = document.cookie.length; } return document.cookie.substring(offset, endstr); } function SetCookie (sCookie) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 1) ? argv[1] : null; var path = (argc > 2) ? argv[2] : null; var domain = (argc > 3) ? argv[3] : null; var secure = (argc > 4) ? argv[4] : false; var s = sCookie + ((expires == null) ? "" : ("; expires=" + expires)) + ";path=/" + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); document.cookie = s; } function addCookieValue (name, value) { var s = document.cookie; return s; } function deleteCookieValue (name, value) { var s = document.cookie; return s; }